package xyz.ljcc.ccmt.commons.utils.layui;

import java.io.Serializable;

/**
 * LayUi Table 的 Col 对象
 * @author liucan
 *
 */
public class LayuiColumn implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String field;  // 字段名
	 
	private String title;  // 显示名（标题）
	
	private Integer width; // 列宽
	
	private Boolean sort = false;  // 是否排序(默认false)
	
	private String fixed;  // 是否固定  (left,right)
	
	private String style;  // 列样式
	
	private Integer colspan;  // 占列
	 
	private Integer rowspan;  // 占行
	
	private Integer minWidth = 0;
	
	private String edit;

	public String getEdit() {
		return edit;
	}

	public void setEdit(String edit) {
		this.edit = edit;
	}

	public Integer getMinWidth() {
		return minWidth;
	}

	public void setMinWidth(Integer minWidth) {
		this.minWidth = minWidth;
	}

	public Integer getColspan() {
		return colspan;
	}

	public void setColspan(Integer colspan) {
		this.colspan = colspan;
	}

	public Integer getRowspan() {
		return rowspan;
	}

	public void setRowspan(Integer rowspan) {
		this.rowspan = rowspan;
	}

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}

	public Boolean getSort() {
		return sort;
	}

	public void setSort(Boolean sort) {
		this.sort = sort;
	}

	public String getFixed() {
		return fixed;
	}

	public void setFixed(String fixed) {
		this.fixed = fixed;
	}

	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

//	@Override
//	public String toString() {
//		return "[field=" + field + ", title=" + title + ", width=" + width + ", sort=" + sort + ", fixed="
//				+ fixed + ", style=" + style + ", colspan=" + colspan + ", rowspan=" + rowspan + "]";
//	}
	
}
